package cn.com.dhcc.turbo.entity.registry.wapper;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import cn.com.dhcc.app.core.handler.dbhandler.WappedResultSet;
import cn.com.dhcc.turbo.entity.registry.MonitorRule;

public class MonitorRuleRowWapper implements RowMapper<MonitorRule> {
	@Override
	public MonitorRule mapRow(ResultSet rss, int rowNum) throws SQLException {
		WappedResultSet rs = new WappedResultSet(rss);
		MonitorRule vo = new MonitorRule();
		vo.setSn(rs.getString("sn"));
		vo.setRuleName(rs.getString("rule_name"));
		vo.setRuleContent(rs.getString("rule_content"));
		vo.setMtime(rs.getDate("mtime"));
		vo.setRemark(rs.getString("remark"));
		return vo;
	}
}
